<?php
//+-----------------------------------------------------------
//| 人生是荒芜的旅行，冷暖自知，苦乐在心
//+-----------------------------------------------------------
//| Author:Janmas <janmas@126.com>
//+-----------------------------------------------------------
//| 
//+-----------------------------------------------------------


namespace app\admin\model;


class Permession extends AdminModel
{
    protected $name = 'system_permession';

    protected $schema = [
        'id' => 'int',
        'role_id' => 'int',
        'permession_id' => 'int',
    ];

    public function menu(){
    	return $this->hasOne(Menu::class,'id','permession_id')->bind(['controller','action','link','type','is_show']);
    }

}